From: Richard M. Stallman Date: Tue, 1 Jun 1993 22:19:16 +0000 (+0000) Subject: (mouse-buffer-menu): Don't select the event's window, X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~95640 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=c0bb9f3b6dd56431415805a65b6abab323140dff;p=emacs.git (mouse-buffer-menu): Don't select the event's window, if event has frame instead. --- diff --git a/lisp/mouse.el b/lisp/mouse.el index 38a9a5a6d65..80a7c0436f8 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -258,7 +258,7 @@ and selects that window." (window (posn-window (event-start event)))) (if buf (progn - (select-window window) + (or (framep window) (select-window window)) (switch-to-buffer buf)))))) ;;; These need to be rewritten for the new scroll bar implementation.